Shouldn't this be moved inside the function rather than removed?