Refined code. Still not working