Some help functions for debug