Add metadata parameter, default to 0.9, add test coverage
Handle service status better