A new tool tidies up molecules at the nano level