Simplified code! Thanks Fib