Adding interrupt signal catching to example