Implemented debug variable for tracking coords