Fix indentation
Store output instead of calculating it each time