Add protection timeouts
Add throw-catch validation to the slave function