Some small changes were needed, here they are. Unfortunately this only supports the `string` type at the moment.