Added functions to deal with sunrise and sunset