Added boolean parameter detection.