Added grad for all directions