Added WorkOrder Session Variable & finalized if statements