Added guards to avoid getting SSE errors