Now set E and B based on inputs.