Add additional input and misc functions
Add SwapInterval()