Removed duplicated block of code.