Cleans up the output