Style nitpick: Please remove the space between `(` and `selectedLayer`.