Added parsing for piped condition (multiple conditions)
Fix some minor issues and improve the code.