Adding more error-handling and default behaviour. Test skeleton for frameprocessor.