I was too ambitious with size_t. j needs to go negative. Clean up some formatting while here.