Control Class. improved 'robust-ness' by adding while loops to some
methods.