Added new methods.
Added swapInterval.