Moved variable declaration
PTBA layer is now a dynamic layer instead of feature layer.