I have made it slightly less ugly. It didn't like taking an array but using an array with `.join` looked much nicer than this mess.