Abstracted out the code directory to a local var.