Added notifyAll at the end of all synchromized methods