Works completely for simple case
Works completely for simple now