Renamed code to fn