Committing changes to now working laser detect functions