Work on debug mode, added util functions for grabbing / storing data