Removed sky functions and normalize function.