Moving main code into a single slot.