added getTime and getGreen for testing purposes.