Added ability to set custom popup width.