Shooting function added