Added windowed option.