There is a code dup here. As described above.