Removed unused $userName variable