Path layer is passed as argument now instead of hard coded