Added else and pipe