Simple utilities function for debugging purpose