Some function to help cheking