Added a helper method for adding observer on main queue.