Implemented dynamic height