Removed unnecessery ** from prepare_port