Updated with Unity 4.5