Added control limits. More debugging.