Fixed function-call depths. Updatd docs.