Merged multiple returns into one for simplicity.