Stat Layer order

Resolved issue where the code was not looking for the stat layer by the
static keyword specified in the config.