Removed alert statement used for debugging