added interval and duration fields, also mihir's code
added interval and duration fields, also mihir's code