Slightly unfinished error handling and passing from WPS4R