Simplified init function