Also instead of being called toJFunction, these should be called toScalaFunction, since the return type is a Scala function.