Added first conditional code