Added some basic constraints.

They’re not perfect, but they’re a decent start.