Add detection when initializing.