Modifications to make snap plugin more standard.