Header added
Replace logerror by logerr