Added boolean to spraying