Added support for multiple signatures using new signature filtering code