Make sure .wrap() is a function as well