Simplified, everything under one object and function