Fix undefined variable, added start script