Moved border creation to separate method.