Added variable range to flask