Add detect from file