Main functions added