Got rid of unused version of function