Add error handling for not supported functions