Add portable layer for dynamic loading