Remove from list (return option) function added. Gotta love SML typing