Removed some warnings. Some errors emerged.