Importing layer management code