Refactoring. Fixes scheduled tasks run errors. Fix buildslave installation