Added constrain method