Fixed a bug, added logic to create a second base.