Added program loops