Weather functions moved to a module