Simplify code + get tosec title