Fixed the comparison operations to handle the symbolis for End.