Removed unused Maybe functions, use the standard Maybe monad instead