Structural insights into cofactor activity