Removed unused function from copy-paste mess up.