Added the code to collect signal declarations