Add resetwarlog command

Also fix frontier functions