Removed nonfunctioning code