Small refactor for add task manually