Changed from returning void to returning int so that main()s who call done() at