Convert to hash before handing to yaml