Finished conditional script