Detection apparatus and method