Cleaned up ray template file