Fully functional script