Adding automatic signal/slot connection mechanism.