Misc generic plugin functions