Removed redundant snippet switching.