More stable for debug funcitons