Complete basic working script