Started implementation of filling inner interval gaps. (Currently not working!)