Added error type and execute