- Added synchronized modifiers to selected methods dealing with the thread-safety issue.