Changed to K&R style (sorry)