Renamed functions to make more sence.