Got rid of the warning by making everything look like a subroutine, in keeping with common C coding practice