Moved millisecond conversion to gui in cupcake()