Refactored utility functions into 'Internal' module.
... and here the 'Internal' module itself.