Removing unused function. LOT faster now. Using model