Written on iPhone and haven't checked. Need to end some functions and variables.