Adding conditional script