Changed List.mapM to List.app
Removed /dev/null redirection