Replace numel() with length()