Fixed layout names being malformed.
Changed the way attributes are requested.
They are now requested using the getAttribute() method.