Changed slot assignment to use selector instead of simple id.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>