Replaced essential code. Deleting old files.