Fixed formatting after much trial and error