changed range and state timestamps to System.currentTimeMillis()