Functions should throw RuntimeExceptions