Added to_hash to spin