First implementation of loading parameters from file