Implement pure functions.