Wrap functions in object