Initial version of standalone script