Add performance measuring
Return immediately instead of defering logic outside of loop (code readability)
Use slicing syntax