Added compatibility with Interface Builder
forked