Remove symlinks committed by accident
Move variable declaration to the top of the function