Code for an investigation