Supports rails 4