Switched to ems for margin calculation.