Removed unused case from the ws handler and profiling