Used TimeUnit class.
Added "AppContext" class.