Made parampass more generic