Better use of globals
Implemented prompt from worker