Updated the code to allow for laser perception.