Need to declare dep on swap here