Expanded info how script works