Adding custom hop subroutine
Finished implementing state 0