Better exception handling. Add a new 'accepts' that allows passing function literals. Logging improvements.