Moved the code into separate methods for grasp