Added multi endpoints support. Added synchronized check and don’t do synchronize check.