Add script for auto-refresh. Fix #3