Main functionality is realised