Overhauled snippet selection system. Added guards to prevent code from running when the add-on isn't installed