Enhanced spout code and conf