Removed testing function