Code pulled in from Spice project
To do list
Renamed files from kde to fkde