New method: getAllComponents