Check file existence
Remove static property
Implement $lock parameter
Set setting for task
Rename method registerTask() to addTask()