Wow, way over thought how to do a partial function.