Added synchronized blocks to everything for whatever reason