All the changes required to get generate working through to an actual api output