Replaced plugin creation with ptype laze creation