Delete not parallel targets
Add new basename function
Add foreach for basename