Quick thinking at the BP