Initial implementation of random gaps. Currently ugly.