Added checkbox functionality.