Added sweep function. Cool\!