Set up the real base. Need to make the source cleaner and document it a bit