Added modified version with entry for sampler. Removed uneccesary position initializer in sampler.