Fixed targets file and updated rules