Putting first version of define trace