Added sample scripts taken from bish.co.uk/forum