I've tried to think of everything. Sir James smiled.
Sir James was smiling when he tried to think of everything.
She could not have committed the crime single-handed, but the reasons against that did not debar her from being an accomplice.