Jobs creating. Some refactoring