Added phone ringer to worker thread. Constants file added. Code refactoring.

Bug: The worker thread does not run the 2nd time.