Add standalone mode

as per #52