Fixed up signals and slots so that everything works.