Initial working version.
Converted app enque messages to log messages (for testing).