Coded function for commands: -f,c,F,r,2