Added read/write constraints.
Write constraint is not fully functional.