Removed now unused function