Make duration not a magic number