added bin layer functionality

heja Johan! Tack :)