Slight adjustment for Rails compatibility