Added conditions to constructor