Update max links to include dependencies

Cherry-picking commits out of my other branch makes this a lot easier, haha.  This should be the second to last piece for issue #5