Added missing sychronized keyword