Added options handlers. Fully implemented for basic tools.