Added rerender option. Closes #6