Added middle and upper layers