Commented out most of the flow control statements, I'll work this out later