Changed integer directive mechanism to resemble the float directive.
Refactored the code.