Occurred to me that some of those variables are local, so changed them to private