Removed unused block of code