Finished TFM_FrontDoor, made some variables thread-safe.