Active transport, ion movements, and pH changes