More work on projectile code