Create separate callbackify function