Added support for slot numbers different than 4096
Credits to Ezequiel Lovelle
Closes patch #272