Silly mistake in coord_system, calling wrong function.