Made W work, added resizing