Looks like duplicate code to me.