Basic script framework