* Removed debug prints, functionality seems to be working