I'm assuming that this function is needed somewhere else? It doesn't seem to be use in this script