Fxied logic mistake.
Made variables explicitly private.