Changed peek to be more like reservesingle, got rid of goto's and simplified window.