Added usage of createPendingCommands instead of createPendingCommand.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>