You don't actually seem to be using this function anywhere.