Split methods up to make it easier to read.