Added some functions to make debugging smoother