Sample code fine tunning