Removed synchronized for layout to improve performance