Added support to layer in portal.