Solved problem with interrupting