Fixed bug that caused stats to refresh with every resume and fail to restore previous state
Moved creation of executor to its own method