MINOR CHNAGE: Unnecessary debugs removed. Try catch added.