Main functionality working.