Cleaned up base.rb a *ton*.