Bugfix

Update `callback` function to send more parameters; added
`required_exists` function.