Updated plugin to allow a top option to be set programmatically