Reduced tiral numbers and rating time, moved means function to separate file.