Add SSE function and other minor changes