Implemented better bind()