Removed repeated code (see line 29)