Added prototype thread manager and ray generator