Solved the second problem.