Added method snippet