Change accept() to use None instead of 0