Added presence detection structure.