Changed .has_key() to in for slave/