Added functions - cleanded zprofile