This should go in a prototype function.