Added double flip with -d option