Seems to be a code duplication