Working v2.0 script