I saw what looked like code duplication but did not have the time too look into it.