Changed the layout definition a bit for cleaner code.
Implemented function to get id of a buf based on defined string
identifiers.