Edited version of kradfile