Use partial instead of anonymous function

cc @r00k