Made octaves independent; fixed issues at the boundary.