Shouldnt this be a prototypal function?