Updated interface of utility functions, changed class constructor