Revert "Update extendedcommands.c"

This reverts commit cb10cf503d85cefa8506f3bf160ed5b4a8a83dd1.