Added turret registering function.