Implemented -d and -i options on formhame