Removing unused function but leaving it in in case I need it again