I was able to get `partial` to work, but it's a little slower than the current implementation. Okay to leave as-is?