Improve the buildCommand() function.

Remove a bunch of "$this->get" calls, this should speed up the function.