Added constructor to define thread enforcement