Turned uneeded function into object.