I have had the same issue. My "increased emissions" code said that the coolant wasn't reaching proper temperature. So I replaced the thermostat. Reset the error code. Then same code came back in a few days. After finding another thread on here on how to test the thermostat terminals, I found out the thermostat wasn't faulty. So now i think it may be water pump instead. I'll post again when i resolve this issue. Maybe this will put u in the right direction for trouble shooting your issue.
Sent from my SCH-I535 using Bimmer App