Added replace functionality to help Plex
Various improvements