I believe you have to read the following docs:
. Also you can run the file of this tread to confirm your laser mechanics.