Removed die() debugging statements