Removed UnsupportedOperationExceptions, to allow the code to compile