UI completed but not yet tested. TODO: State Table Generation.