Apply --tags option
Add no ask variable
Move export function