Resolved bug when no lookup layers are provided
Updated coded to match boilerplate