I think it is working as requested. So, what's wrong?