Add layers functionality