Fixed submission out of memory and added one more layer