Refactored agent
Added app_paths migration