Added call to update so it is called before the first draw.