Added key-based authentication to decide_state_per_pool.pl