Allow the resultclass to be overriden