Still a partial solution. Not woking yet.