Code written in relation to my Final Year Project