Moved CLT function in separate file