What problems was Spanning Tree Protocol (STP) primarily designed to solve? (Choose two):