Separated some fundamental functions into new source-file "utils" to make it accessible for other modules