Updated the hook release and hook latch code to avoid using Timer.delay() calls.