Turns an object into an object that can be called as a function.