Modified laser firing code