Set the base dynamically.