Refactored and made it possible to bind to any prefix