Modifies MainActivity class.