Replaced the crazy coneTrace-function with a much easier one