Curiosity....

Not to be ignorant or anything, I'm just very curious as to how butt plugs are used. I mean, yes I know they're obviously meant to put in your butt, but what are they suppose to do?