Changed access modifiers for fields and connect/diconnect