Edits to getCubes()

Add time, need threshold