Created source and added conditions