Changed keep_running to standard bool instead of static bool