This switch should me moved to Helper class. Maybe we should combine different methods in one helper.