Added basic detection/publish functionality