added required option and timer