Main script organized