Added some random code which might be useful.